<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>ES Modules IE浏览器环境 Polyfill</title>
</head>
<body>
  <!-- 加载promise-polyfill模块使IE支持Promise -->
  <script nomodule src="https://unpkg.com/promise-polyfill@8.1.3/dist/polyfill.min.js"></script>

  <!-- browser-es-module-loader在运行时将ES6代码读取出来交给babel转化 -->
  <!-- babel即时运行在浏览器环境的一个版本 -->
  <script nomodule src="https://unpkg.com/browser-es-module-loader@0.4.1/dist/babel-browser-build.js"></script>
  <!-- browser-es-module-loader模块 -->
  <script nomodule src="https://unpkg.com/browser-es-module-loader@0.4.1/dist/browser-es-module-loader.js"></script>

  <script type="module">
    import {title} from './module.js'
    console.log(title)
  </script>

</body>
</html>